Skip to content

Windows / RTX 3060: bindless black-texture fix, vdb from npm, D3D12 sweep - #101

Open
DennisSmolek wants to merge 6 commits into
mainfrom
claude/windows-only-issues-plan-2de38a
Open

DennisSmolek wants to merge 6 commits into
mainfrom
claude/windows-only-issues-plan-2de38a

Conversation

@DennisSmolek

@DennisSmolek DennisSmolek commented Dec 1, 2026 •

Copy link
Copy Markdown
Member

Windows / RTX 3060 work, 2026-12-02. Best-effort timing results are in bench/results/quiet-pass/20261202-win/REPORT.md; the verdicts table there has one suggestion per item. Biggest finding: cold DXC compile follows features, not kernel bytes (pbr-stochastic-fuzz 13.6 s, plain 0.95 s, a 58 KB unminified kernel 0.94 s).

Bindless textures rendered black on Windows (P1.4c2a, #32)

With pt_tex_binding=table, every textured surface of the megakernel rendered black: tex-checker mean 0.16 against 0.56 for arrays. It happened on the RTX 3060 and the Intel UHD, in Chrome D3D12, dawn.node Vulkan and dawn.node D3D12.

  • Cause: Dawn's ResourceTable.insert() refuses a view whose texture usages are not exactly TEXTURE_BINDING. GPU mips (D34) add RENDER_ATTACHMENT / STORAGE_BINDING. The refusal is an uncaptured validation error, so insert() still returns the index, the slot stays empty, and getResource reads the default texture.
  • Why the lookup check missed it: it builds CPU mips.
  • Fix: uploadSceneTextures inserts views created with usage: TEXTURE_BINDING (DIVERGES V346). bindless-check check=render gained mips=cpu for the A/B.
  • After the fix: lookups (coherent, divergent, holed) and the tex-checker / tex-mask renders are bit-identical to arrays on all four backends tested.
  • Uniformity: dump_shaders shows neither backend marks the index non-uniform. NVIDIA and Intel are correct anyway, so V297 stays as a per-device check.

Other changes

  • VDB-P1.11: the bench takes @pmndrs/vdb ^0.2.0 from npm instead of the link: to a WebVDB checkout. Typecheck and pnpm test pass on Windows, and the NanoVDB kernel variants build there.
  • matrix.ts --gpu: passes --gpu through to the runner, so matrix cells can be pinned to the discrete GPU on a laptop.
  • W17 D3D12 sweep: rerun after the P5 / volumes / NanoVDB merges, 21 of 21 check pages pass. TASKS and the Windows traps are updated.

Test plan

  • pnpm typecheck, pnpm test
  • bindless-check check=lookup,render on Chrome D3D12 (NVIDIA, Intel), dawn.node Vulkan and D3D12
  • D3D12 correctness sweep (21 pages)

Also fixed

  • kernel-compile: its nonce anchor missed the frame-mode kernels (rt-frame*, *-realtime), so the full W10 run failed.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant